Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select the NativeAOT runtime pack as the target package when it's provided as part of the KnownILCompilerPack metadata #46611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkoritzinsky
Copy link
Member

The NativeAOT targets now support using the NativeAOT runtime pack as the "runtime" ILC package.

Add support (and use by default when available) the NativeAOT runtime pack as the "target" package for NativeAOT, even when not using UseNativeAotRuntimePack (which has some issues around publishing that are being worked on in parallel in #37872).

This change will allow us to change the ILCompiler pack itself (not the runtime pack) to only have the assets for running the ILCompiler, not the runtime assets for that target.

…vided as part of the KnownILCompilerPack metadata.

Depends on dotnet/runtime#111876
Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Comment on lines +850 to +851
// If we have a separate pack pattern for the runtime pack,
// we should always use the runtime pack (the host pack may not have the tooling we need for the target).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the mention of the host pack a little confusing since we already pull a separate target-specific package when needed. I'd change this to "If there's an available runtime pack, use it instead of the ILCompiler package for target-specific bits." or something along those lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants